import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/cupertino.dart';

import '../model/employee_model.dart';
import '../net/response/temp_human_data_list.dart';

class SelectTempHumanViewModel extends BaseListViewModel<TempHumanDataList>{
  SelectTempHumanViewModel(BuildContext context) : super(context);
  var model = EmployeeModel();
  var nameLike = "";
  @override
  Future<List<TempHumanDataList>> requestListData() async {
    return await model.tempList(nameLike: nameLike);
  }

  @override
  void onCreated() {
    super.onCreated();
    requestRefresh(showAni: false);
  }

}